﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Umi.Crypto.Abstraction.Keys
{
    /// <summary>
    /// Key参数创建
    /// </summary>
    public interface IKeyParameterCreator
    {
        /// <summary>
        /// Key参数构建
        /// </summary>
        /// <param name="key">key参数</param>
        /// <returns></returns>
        KeyParameter Create(string key);

        /// <summary>
        /// 创建随机密钥
        /// </summary>
        /// <returns></returns>
        KeyParameter RandomKey();
    }
}
